{#include file="admin_header.htm"#}
<script type="text/javascript" src="admin_ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/article_tit_color.js"></script>
{#include file="admin_explain_nav.htm"#}
<div class="admin_main_nr_box">
  <form action="?act=editsave" method="post" enctype="multipart/form-data" name="FormData" id="FormData" onsubmit="return chk_regform();">
    <table width="700" border="0" cellpadding="3" cellspacing="1" bgcolor="#EAEAEA">
      <tr>
        <td width="67" align="right" bgcolor="#FFFFFF">页面名称：</td>
        <td bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="3">
            <tr>
              <td width="28%"><input name="title" type="text"  class="article_text_long" value="{#$edit_article.title#}" maxlength="45"/></td>
              <td width="2%"><div id="article_color_box_bg" onclick="Qishi_is_display()" ></div><input type="hidden" name="tit_color" id="tit_color" value="{#$edit_article.tit_color#}"></td>
              <td width="70%" valign="top">{#include file="admin_article_color.htm"#}</td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF">所属分类：</td>
        <td bgcolor="#FFFFFF"><select name="type_id" id="type_id"  style="height:26px; width:165px; font-size:14px; padding:3px; margin-left:3px;">
          <option value="">请选择所属分类：</option>
		  {#section name=get_explain_category loop=$get_explain_category#}
          <option value="{#$get_explain_category[get_explain_category].id#}"  {#if $get_explain_category[get_explain_category].id==$edit_article.type_id#} selected="selected" {#/if#}>{#$get_explain_category[get_explain_category].categoryname#}</option>
{#/section#}        
        </select></td>
      </tr>
    </table>
    <table width="700" border="0" cellpadding="0" cellspacing="0" bgcolor="#EAEAEA">
      <tr>
        <td width="100" bgcolor="#FFFFFF"><textarea cols="80" name="content" rows="10" >{#$edit_article.content#}</textarea>
            <script type="text/javascript">
CKEDITOR.replace( 'content',
{
skin : 'kama'
});
      </script></td>
      </tr>
      <tr>
        <td height="50" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value="确定提交" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="reset" name="Submit2" value="重置表单" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'"/></td>
      </tr>
    </table>
    <table width="700" border="0" cellpadding="3" cellspacing="1" bgcolor="#EAEAEA">
      <tr>
        <td width="134" height="30" align="right" bgcolor="#FFFFFF">是否显示：</td>
        <td width="207" bgcolor="#FFFFFF"><input name="is_display" type="radio" value="1"  {#if $edit_article.is_display==1#} checked="checked"{#/if#} />
显示
<input type="radio" name="is_display" value="0" {#if $edit_article.is_display==0#} checked="checked"{#/if#} /> 
不显示</td>
        <td width="80" align="right" bgcolor="#FFFFFF">文章排序：</td>
        <td width="250" bgcolor="#FFFFFF"><input name="show_order" type="text"  class="article_text" id="show_order" style="width:50px;" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');" value="{#$edit_article.show_order#}" maxlength="8"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
        <span>&nbsp;&nbsp;&nbsp;&nbsp;数字越大越靠前</span></td>
      </tr>
      <tr>
        <td height="30" align="right" bgcolor="#FFFFFF">外部链接：</td>
        <td bgcolor="#FFFFFF"><input name="is_url" type="text" class="article_text" id="is_url" value="{#$edit_article.is_url#}" maxlength="100"/></td>
        <td align="right" bgcolor="#FFFFFF">标题加粗：</td>
        <td bgcolor="#FFFFFF"><input name="tit_b" type="checkbox" id="tit_b" value="1"  {#if $edit_article.tit_b==1#} checked="checked"{#/if#} />
        加粗</td>
      </tr>
	  <tr>
	  </tr>
      <tr>
        <td height="30" align="right" bgcolor="#FFFFFF">关键字(keywords)：</td>
        <td colspan="3" bgcolor="#FFFFFF"><input name="seo_keywords" type="text" class="article_text" id="keywords"  maxlength="30"  style="width:500px;"  value="{#$edit_article.seo_keywords#}"/></td>
      </tr>
      <tr>
        <td height="30" align="right" valign="top" bgcolor="#FFFFFF">描述(description)：</td>
        <td colspan="3" bgcolor="#FFFFFF"><textarea name="seo_description" class="article_textarea" id="description">{#$edit_article.seo_description#}</textarea>
<input name="id" type="hidden" id="id" value="{#$edit_article.id#}" /></td>
      </tr>
    </table>
  </form>
</div>
{#if $edit_article.tit_color#}
<script type="text/javascript" >
var rgb="{#$edit_article.tit_color#}";
document.FormData.tit_color.value= rgb;
document.getElementById('tit_color').style.background=rgb;
document.getElementById('article_color_box_bg').style.background=rgb;
</script>
{#/if#}
{#include file="admin_footer.htm"#}
</body>
</html>